<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%
	String contextRoot = request.getContextPath();
%>
<f:loadBundle basename="properties.messages" var="msg" />
<f:view> 
<!doctype html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>SISDEP - Administraci<h:outputText value="#{msg.tilde_o}" />n de Valores de Tipos de Listas Maestras</title>
		<meta name="description" content="" />
		<meta name="author" content="" />		     
		<link rel="stylesheet" href="<%=contextRoot%>/css/validationEngine.jquery.css" type="text/css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/template.css" type="text/css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/normalize.css">
		<link rel="stylesheet" href="<%=contextRoot%>/css/uniform.css"> <!-- estilos formularios -->
		<link rel="stylesheet" href="<%=contextRoot%>/css/cuerpo.css">	
		<link rel="stylesheet" href="<%=contextRoot%>/css/richCustom.css">	
	</head>
	<body>
		<div id="marco"> <!--inicio contenedor --> 
		<div class="arriba-cuerpo"></div> 
		<div class="cuerpo">
		<a href="<%=contextRoot%>/index.jsf"><img src="<%= contextRoot %>/images/logos.png" /></a>
		<div class="clear"></div>
		<!-- Menu y Usuario init() -->
			<%@ include file="include/menuUsuario.jsp" %>
		<!-- Menu y Usuario end() -->
		<div class="clear"></div>
		<!-- Formulario --> 
		<div id="buscador">		
		  <h2>Gesti<h:outputText value="#{msg.tilde_o}" />n de un Valor Tipo: <h:outputText value="#{masterListController.typeValueAdmonVO.componentValueId eq '' ? 'NUEVO' : 'EDICION'}" /></h2>								
					<h:form id="manageTypeValueForm">
					<span class="left">
						<label>Tipo de Lista Maestra<span class="asterisco">*</span></label>
						<h:selectOneMenu id="typeId" styleClass="validate[required]"
								value="#{masterListController.typeValueAdmonVO.componentId}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
                                <f:selectItems value="#{masterListController.typeMasterList}"/>
               			</h:selectOneMenu>
					</span>
					<span class="right">
						<label>Nombre<span class="asterisco">*</span></label>
						<h:inputText id="typeValueName" styleClass="validate[required]" size="50" maxlength="50" 
									value="#{masterListController.typeValueAdmonVO.componentValueName}" />
						
					</span><div class="clear"></div>
					<span class="left">
						<label>Valor<span class="asterisco">*</span></label>
						<h:inputText id="typeValueKey" styleClass="validate[required]" size="30" maxlength="50" 
									value="#{masterListController.typeValueAdmonVO.componentValueKey}" />
					</span>
					<span class="right">
						<label>Descripci<h:outputText value="#{msg.tilde_o}" />n</label>
						<h:inputText id="typeValueDescription" size="50" maxlength="130" styleClass="typeValueDescription"
									value="#{masterListController.typeValueAdmonVO.componentValueDesc}" />
					</span><div class="clear"></div>
					(<span class="asterisco"> * </span>) : Campo Obligatorio
					<span class="left">
						<label>&nbsp;</label>					
							<h:commandButton id="saveManageTypeValueButton"
											 styleClass="botonsmall"
                                             type="submit" 
                                             value="Guardar" 
                                             ondblclick="return false;" 
                                             action="#{masterListController.manageTypeValue}" >
                            </h:commandButton>
					</span>	
					</h:form>
				</div>
				<div class="clear"></div>
				<div class="clear" style="width: 400px; margin-left: 0px;"></div>
				<div class="clear" style="margin-left: 350px;"></div>
				<span class="botones left" style="width: 223px; height: 15px; margin-left:25px; padding-top:5px; padding-bottom:5px; padding-left:20px; padding-right:20px; background-color: #006F73; color: white;">
				Informaci<h:outputText value="#{msg.tilde_o}" />n de Auditor<h:outputText value="#{msg.tilde_i}" />a
				</span>
				<div class="clear" style="margin-left: 350px;"></div>
				<div>
				<span class="left" >
				<span class="left" style="width: 110px; height: 15px; margin-left:25px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 1px solid #999999; border-right: 1px solid #999999; color: #666666;">Usuario Creaci<h:outputText value="#{msg.tilde_o}" />n</span>
				<span class="left" style="width: 110px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Fecha Creaci<h:outputText value="#{msg.tilde_o}" />n</span>
				<span class="left" style="width: 170px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Usuario <h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText value="#{msg.tilde_o}" />n</span>
				<span class="left" style="width: 170px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Fecha <h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText value="#{msg.tilde_o}" />n</span>
				</span>		
				<span class="left" >
				<span class="left" style="width: 110px; height: 15px; margin-left:25px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 1px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText value="#{masterListController.typeValueAdmonVO.idCreateUser}" /></span>
				<span class="left" style="width: 110px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText value="#{masterListController.typeValueAdmonVO.createDate}" /></span>
				<span class="left" style="width: 170px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText value="#{masterListController.typeValueAdmonVO.idModifyUser}" /></span>
				<span class="left" style="width: 170px; height: 15px; margin-left:0px; padding-top:5px; padding-bottom:5px; padding-left:10px; padding-right:10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText value="#{masterListController.typeValueAdmonVO.modifyDate}" /></span>
				</span>
			    </div>				
                 <table width="80%" border="0" cellpadding="0" cellspacing="0" class="tablapaginacion" >
					  <tr>
						<td align="center" valign="bottom" >
						    <h:form id="cancelManageTypeValueForm">
							<h:commandButton id="cancelManageTypeValueButton"
											 styleClass="botonsmall" 
                                             type="submit" 
                                             value="Cancelar" 
                                             ondblclick="return false;" 
                                             action="#{masterListController.cancelManageTypeValue}" >
                            </h:commandButton>
                            </h:form>
						</td>
					 </tr>
				</table>
	</div>
	<div class="abajo-cuerpo"></div> 
	</div> <!-- Fin contenedor -->
	<div class="footer"></div>	
<script src="<%=contextRoot%>/js/jquery/lib/jquery-1.7.2.min.js"></script><!-- De ser 1ro -->
<script src="<%=contextRoot%>/js/script.js" type="text/javascript"></script><!-- De ser 2do -->
<script src="<%=contextRoot%>/js/jquery/lib/jquery.uniform.min.js"></script> <!-- formularios --> 
<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine-es.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
jQ(document).ready(function() {
	jQ("input, select, input:checkbox, input:radio, input:file").uniform();
	jQ("#manageTypeValueForm").validationEngine('attach');
	jQ("#manageTypeValueForm").bind("jqv.form.result", function(event, errorFound) {
        if(!errorFound) displayLoadingImage();
    });
});
</script>			
	<%@ include file="include/validationStatus.jsp" %>			
	</body>
</html>
</f:view>